//
//  ViewController.m
//  UI_06homeWork
//
//  Created by dllo on 16/5/10.
//  Copyright © 2016年 jcl. All rights reserved.
//

#import "ViewController.h"
#import "PictureScrollView.h"
#import "CellView.h"
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self createCellViews];
    
}

- (void)createCellViews{
    
    UIImageView *imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@""]];
    
    imageView.alpha = 0.5;
    
    [self.view addSubview:imageView];
    
    [imageView release];
    
    
    PictureScrollView *scrollView = [[PictureScrollView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height)];
    
    scrollView.backgroundColor = [UIColor clearColor];
    
    [self.view addSubview:scrollView];
    
    CellView *view1 = [CellView cellViewWithTitleOfName:@"NAMI" titleOfNumber:@"13333333333" frame:CGRectMake(0, 80, CGRectGetWidth(self.view.bounds), 170) pictureName:@"nami.jpg"];
    
    [scrollView addSubview:view1];
    
    
   
    CellView *view2 = [CellView cellViewWithTitleOfName:@"NAMI" titleOfNumber:@"13333333333" frame:CGRectMake(0, 40, CGRectGetWidth(self.view.bounds), 170) pictureName:@"nami.jpg"];
    
    [scrollView addSubview:view2];

    
}




@end
